<html>
<body>

<div class = "index">

<?php
if($this->Session->read("login")=="yes")
{
    ?>
    <h2><?php echo __('File Upload'); ?></h2>
    <form action="FileUpload" method="post"
          enctype="multipart/form-data">
        <label for="file">Please choose the CSV file to upload:</label>
        <input type="file" name="file" id="file"><br>
        <input type="submit" name="submit" value="Submit">
    </form>
    <?php
}
else
{
    echo "<p> You can't view the content of this page. </p>";
}
?>
</div>

</body>
</html>